{
String dependency = value.getString();
if ( ! loaded.containsKey( dependency ) )
{
throw new LdapOperationNotSupportedException(
"Unwilling to perform operation on enabled schema with disabled or missing dependencies: "
+ dependency, ResultCodeEnum.UNWILLING_TO_PERFORM );
}
}
}
else
{
for ( Value<?> value:dependencies )
{
String dependency = value.getString();
if ( schemaManager.getLoadedSchema( StringTools.toLowerCase( dependency ) ) == null )
{
throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_385, dependency ),
ResultCodeEnum.UNWILLING_TO_PERFORM );
}
}
}
}