container/common/src/main/java/org/mobicents/slee/container/deployment/ClassUtils.java
public static String getPrimitiveTypeFromObject(String argumentType,
    		String argument) {
    	if (argumentType.equals("int"))
    		return "((Integer)" + argument + ").intValue()";
    	if (argumentType.equals("boolean"))
    		return "((Boolean)" + argument + ").booleanValue()";
    	if (argumentType.equals("byte"))
    		return "((Byte)" + argument + ").byteValue()";
    	if (argumentType.equals("char"))
    		return "((Character)" + argument + ").charValue()";
    	if (argumentType.equals("double"))
    		return "((Double)" + argument + ").doubleValue()";
    	if (argumentType.equals("float"))
    		return "((Float)" + argument + ").floatValue()";
    	if (argumentType.equals("long"))
    		return "((Long)" + argument + ").longValue()";
    	if (argumentType.equals("short"))
    		return "((Short)" + argument + ").shortValue()";
    	return null;
    }
public static String getPrimitiveTypeFromObject(String argumentType,
    		String argument) {
    	if (argumentType.equals("int"))
    		return "((Integer)" + argument + ").intValue()";
    	if (argumentType.equals("boolean"))
    		return "((Boolean)" + argument + ").booleanValue()";
    	if (argumentType.equals("byte"))
    		return "((Byte)" + argument + ").byteValue()";
    	if (argumentType.equals("char"))
    		return "((Character)" + argument + ").charValue()";
    	if (argumentType.equals("double"))
    		return "((Double)" + argument + ").doubleValue()";
    	if (argumentType.equals("float"))
    		return "((Float)" + argument + ").floatValue()";
    	if (argumentType.equals("long"))
    		return "((Long)" + argument + ").longValue()";
    	if (argumentType.equals("short"))
    		return "((Short)" + argument + ").shortValue()";
    	return null;
    }
public static String getPrimitiveTypeFromObject ( String argumentType , String argument ) { if ( argumentType . equals ( "int" ) ) return "((Integer)" + argument + ").intValue()" ; if ( argumentType . equals ( "boolean" ) ) return "((Boolean)" + argument + ").booleanValue()" ; if ( argumentType . equals ( "byte" ) ) return "((Byte)" + argument + ").byteValue()" ; if ( argumentType . equals ( "char" ) ) return "((Character)" + argument + ").charValue()" ; if ( argumentType . equals ( "double" ) ) return "((Double)" + argument + ").doubleValue()" ; if ( argumentType . equals ( "float" ) ) return "((Float)" + argument + ").floatValue()" ; if ( argumentType . equals ( "long" ) ) return "((Long)" + argument + ").longValue()" ; if ( argumentType . equals ( "short" ) ) return "((Short)" + argument + ").shortValue()" ; return null ; }
Return the String allowing one to create a primitive type (Integer,
Boolean, Byte,... ) from a primitive type given in parameter.

@param argumentType
@param argument
@return
Return the String allowing one to create a primitive type ( Integer Boolean Byte ... ) from a primitive type given in parameter .