parameters[1] = interfaces[i];
parameters[0] = interfaces[i];
	private static Class[] getParameters(Object domainObject)	{		Class[] interfaces = domainObject.getClass().getInterfaces();		// Start with the most frequent case		if (interfaces.length == 1)		{			return interfaces;		}		else if (interfaces.length == 0)		{			System.out.println(				"Object " + domainObject.getClass().getName() + " does not implement any interfaces!");			return null;		}		else		{			System.out.println(				"Object " + domainObject.getClass().getName() + " implements multiple interfaces!");			Class[] parameters = null;			for (int i = 0; i < interfaces.length; i++)			{				System.out.println("  interface: " + interfaces[i].getName());				if (Arrays.asList(interfaces[i].getInterfaces()).contains(IDomainObject.class)					|| (interfaces[i].getSuperclass().getName().equals(IDomainObject.class.getName())))				{					parameters = new Class[1];					parameters[1] = interfaces[i];				}			}			return parameters;		}	}