String pdescription = pinfo.getDescription();
// Generate a name if there is none
if (pname == null)
pname = "arg#" + i;
Fields fields = new DefaultFieldsImpl(pname);
if (pdescription != null)
fields.setField(Fields.DESCRIPTION, pdescription);
MetaMapper[] paramMapper = {null};
Class<?> paramType = loadTypeClass(pinfo.getType(), mbeanLoader);
MetaType metaType = getMetaType(pinfo, paramType, metaData, true, paramMapper);
fields.setField(Fields.META_TYPE, metaType);
ManagedParameterImpl mp = new ManagedParameterImpl(fields);
if(paramMapper[0] != null)
mp.setTransientAttachment(MetaMapper.class.getName(), paramMapper[0]);