* @param userGroupCallbackClass the class
* @param properties the properties
* @return the user group callback
*/
public static UserGroupCallback newUserGroupCallback(Class<? extends UserGroupCallback> userGroupCallbackClass, Properties properties) {
UserGroupCallback userGroupCallback = null;
Constructor<? extends UserGroupCallback> constructor = getConstructor(userGroupCallbackClass);
Class<?>[] parameterTypes = constructor != null ? constructor.getParameterTypes() : new Class<?>[0];
try {
if (parameterTypes.length == 0) {
userGroupCallback = Construction.construct(userGroupCallbackClass);