public boolean isActive( Profile profile, ProfileActivationContext context, ModelProblemCollector problems )
{
boolean active = false;
Activation activation = profile.getActivation();
if ( activation != null )
{
String jdk = activation.getJdk();
if ( jdk != null )
{
String version = context.getSystemProperties().get( "java.version" );
if ( version == null || version.length() <= 0 )
{
problems.add( Severity.ERROR, "Failed to determine Java version for profile " + profile.getId(),
activation.getLocation( "jdk" ), null );
return false;
}
if ( jdk.startsWith( "!" ) )
{