//trimming collections
description.trimToSize();
//building and returning object
return new AuthenticationMechanism(description, authenticationMechanismType, credentialInterface, id);
}
else
{
if (AuthenticationMechanism.Tag.forName(reader.getLocalName()) == AuthenticationMechanism.Tag.UNKNOWN)