@Override
public void setProcessingElementType(String text)
throws UnknownTypeException, TypeMismatchException
{
Variable var = mExecutionState.getVariables().get(text);
if (var == null)
{
throw new UnknownTypeException(text);
}
if (!(var.getType() instanceof ProcessingElementTypeType))
{
throw new TypeMismatchException("ProcessingElementTypeType", var.getValue());
}
ProcessingElementTypeType type = (ProcessingElementTypeType)var.getType();
SimpleProcessingElementDescriptor descriptor = null;
if (type.getDescriptor() != null)
{
descriptor =
new SimpleProcessingElementDescriptor(null, type.getDescriptor(), null);