public void openCommand() {
if (getCreationSupport() instanceof ConstructorCreationSupport) {
ConstructorCreationSupport creationSupport =
(ConstructorCreationSupport) getCreationSupport();
ClassInstanceCreation creation = creationSupport.getCreation();
AbstractInvocationDescription description = creationSupport.getDescription();
List<Expression> arguments = DomGenerics.arguments(creation);
openCommand(description, arguments);
}
if (getCreationSupport() instanceof ImplicitFactoryCreationSupport) {
ImplicitFactoryCreationSupport creationSupport =
(ImplicitFactoryCreationSupport) getCreationSupport();
MethodInvocation invocation = creationSupport.getInvocation();
AbstractInvocationDescription description = creationSupport.getDescription();
List<Expression> arguments = DomGenerics.arguments(invocation);
openCommand(description, arguments);
}
}