for (int i = 0; i < elements.length; ++i)
{
Class clazz = parameters[i];
if (clazz == byte[].class)
{
objects[i] = new ByteArraySerializer().fromXML(elements[i]);
} else
{
Serializer ser = registry.getSerializer(parameters[i]);
objects[i] = ser.fromXML(elements[i]);
}