return null;
}
public static Boolean isOptional(final Class<?> type) {
if (type != null) {
Extension extension = type.getAnnotation(Extension.class);
if (extension != null) {
return Boolean.valueOf(extension.optional());
}
ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class);
if (qualifier != null) {
return Boolean.valueOf(qualifier.extension().optional());
}