public static void customMethod(String methodType,String methodName, Class<?> clazz){
		String completeName = clazz.getCanonicalName();
		String packageName = clazz.getPackage().getName();
		String className = completeName.substring(packageName.length()+1);
		throw new MalformedBeanException(MSG.INSTANCE.message(customMethodException, methodType, methodName,className));
	}
public static void customMethod ( String methodType , String methodName , Class < ? > clazz ) { String completeName = clazz . getCanonicalName ( ) ; String packageName = clazz . getPackage ( ) . getName ( ) ; String className = completeName . substring ( packageName . length ( ) + 1 ) ; throw new MalformedBeanException ( MSG . INSTANCE . message ( customMethodException , methodType , methodName , className ) ) ; }
Thrown when the bean doesn't respect the javabean conventions.
@param methodType method type
@param methodName name of the method doesn't exist
@param clazz class when this method isn't present