+ " is not assignable to " + preferenceType.getQualifiedSourceName(),
null);
throw new UnableToCompleteException();
}
DataType dataType = prefType.getAnnotation(DataType.class);
if (dataType == null) {
logger.log(TreeLogger.ERROR, prefType
+ " must define a DataType annotation", null);
throw new UnableToCompleteException();
}
userPref.setAttribute("name", m.getName());
userPref.setAttribute("datatype", dataType.value());
PreferenceAttributes attributes = m.getAnnotation(PreferenceAttributes.class);
if (attributes != null) {
GadgetUtils.writeAnnotationToElement(logger, attributes, userPref);