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

@param argumentType -
the primitive type as a String (int, boolean, byte, ...)
@param argument -
the argument to transform
@return the String allowing one to create an Object from a primitive type
Return the String allowing one to create an Object ( Integer Boolean Byte ... ) from a primitive type given in parameter .