if (propName.length() == 0) {
propName = field.getName();
}
final ArtifactCreationContext ac = ArtifactCreationContext.getCurrentArtifactCreationContext();
final Properties properties = ac.properties;
if (properties != null) {
final String rawVal = properties.get(propName);
if (rawVal == null || rawVal.isEmpty()) {
return null;
}
final Class<?> fieldType = field.getType();
return fieldType.isAssignableFrom(String.class) ? (T) rawVal :