*/
@SuppressWarnings("unchecked")
public static UserGroupCallback newUserGroupCallback(BPMComponentImplementationModel model, ClassLoader loader) {
Class<? extends UserGroupCallback> userGroupCallbackClass = null;
Properties properties = null;
UserGroupCallbackModel userGroupCallbackModel = model.getUserGroupCallback();
if (userGroupCallbackModel != null) {
userGroupCallbackClass = (Class<? extends UserGroupCallback>)userGroupCallbackModel.getClazz(loader);
PropertiesModel propertiesModel = userGroupCallbackModel.getProperties();
properties = propertiesModel != null ? propertiesModel.toProperties() : null;
}
if (properties == null) {
properties = new Properties();
}