String className =
env != null ? (String) env.get(WorkflowClient.INITIAL_CLIENT_FACTORY) : null;
if (className == null)
{
ClientNotFoundException ne =
new ClientNotFoundException(
"Need to specify class name in environment or system "
+ "property, or as an applet parameter, or in an "
+ "application resource file: "
+ WorkflowClient.INITIAL_CLIENT_FACTORY);
throw ne;
}
try
{
factory = (ObjectClientFactory) helper.loadClass(className).newInstance();
}
catch (Exception e)
{
ClientNotFoundException ne =
new ClientNotFoundException("Cannot instantiate class: " + className);
ne.initCause(e);
throw ne;
}
}
else
{