You could probably use method invocation from reflection:
Class<?>
c = Class.forName("class name");
Method method = c.getDeclaredMethod("method name", parameterTypes);
method.invoke(objectToInvokeOn, params);
Where:
· class name - name of the class
· objectToInvokeOn - is of type Object and is the object you want to invoke the method on
· method name - name of the method you want to call
· parameterTypes - is of type Class[] and declares the parameters the method takes
· params - is of type Object[] and declares the parameters to be passed to the method.