switch (type) {
case AttributeDefinition.PASSWORD :
case AttributeDefinition.STRING :
return value;
case AttributeDefinition.LONG :
<BUG>return new Long(value);
</BUG>
case AttributeDefinition.INTEGER :
<BUG>return new Integer(value);
</BUG>
case AttributeDefinition.SHORT :

switch (type) {
case AttributeDefinition.PASSWORD :
case AttributeDefinition.STRING :
return value;
case AttributeDefinition.LONG :
return Long.valueOf(value);
case AttributeDefinition.INTEGER :
return Integer.valueOf(value);
