* its class name.
*/
public static WorkflowTaskInstance getTaskObjectFromInnerClassName(Class<?> enclosingInstance, String className) {
if (className != null) {
WorkflowTaskInstance taskInstance = null;
try {
Class workflowTaskClass = Class.forName(className);
Constructor construct = workflowTaskClass.getConstructor(enclosingInstance);
taskInstance = (WorkflowTaskInstance) construct.newInstance();