ElementSerializer<K> forwardKeySerializer = null;
if ( !attributeType.getSyntax().isHumanReadable() )
{
forwardKeySerializer = ( ElementSerializer<K> ) new ByteArraySerializer();
}
else
{
forwardKeySerializer = ( ElementSerializer<K> ) new StringSerializer();
}