public static CommonProfile buildUserProfileByClassCompleteName ( final String completeName ) { try { final Constructor < ? extends CommonProfile > constructor = CommonHelper . getConstructor ( completeName ) ; return constructor . newInstance ( ) ; } catch ( final ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException e ) { throw new TechnicalException ( e ) ; } }
Build a profile by its class name .