Hi,I use code like this:@Activate protected void activate
(ComponentContext ctx) { String myvar = PropertyUtils.toString
(ctx.getProperties().get("myvar"), "defaultValue"); }The PropertyUtils
helper is very useful, as it provides many conversion tools including
the support for a default value, if the property is not provided or
empty.