* @return the stub.
*/
public GaWorkloadGeneratorStub getWorkloadGeneratorStub() {
Stereotype stereotype = activity.getApplicableStereotype(GaWorkloadGeneratorDecorator.QUALIFIED_NAME);
GaWorkloadGeneratorDecorator decorator = null;
try {
decorator = (GaWorkloadGeneratorDecorator) getFactory().getDecorator(stereotype);
} catch (ClassNotFoundException e) {} // cannot happen
catch (InvalidContextException e) {} // cannot happen
return (GaWorkloadGeneratorStub) decorator.getStub(activity);
}