public static Component newInstanceWithEntity(Class<?> componentClass, Entity entity)
	{
        Constructor<?> ctor;
		try {
			ctor = componentClass.getConstructor();
			Object instance = ctor.newInstance();
			if(instance instanceof Component)
			{
				Component ret = (Component)instance;
	        	ret.setEntity(entity);
	        	ret.init();
				return ret;
			}
		} catch (Exception e) {
			throw new Remote2DException(e);
		}
		
        return null;
	}