Activation activation = profile.getActivation();
if ( activation != null )
{
ActivationProperty property = activation.getProperty();
if ( property != null )
{
String name = property.getName();
boolean reverseName = false;
if ( name != null && name.startsWith( "!" ) )
{
reverseName = true;
name = name.substring( 1 );
}
if ( name == null || name.length() <= 0 )
{
problems.add( Severity.ERROR, "The property name is required to activate the profile "
+ profile.getId(), property.getLocation( "" ), null );
return false;
}
String sysValue = context.getUserProperties().get( name );
if ( sysValue == null )
{
sysValue = context.getSystemProperties().get( name );
}
String propValue = property.getValue();
if ( StringUtils.isNotEmpty( propValue ) )
{
boolean reverseValue = false;
if ( propValue.startsWith( "!" ) )
{