IArtefactRepresentation representation, Configuration configuration) {
if (representation == null
|| !EcoreToolsGMFDiagram.TYPE.equals(representation.getType()))
return null;
EcoreToolsGMFDiagram diagramRepr = (EcoreToolsGMFDiagram) representation;
Diagram diagram = diagramRepr.getDiagram();
ConfigurationProvider cP = new ConfigurationProvider();
cP.extractContent(configuration);
List<String> namePattern = cP.getNamePattern();
boolean andMatching = cP.isAndMatching();
if (namePattern == null)
return representation;
DiagramExecuter
.execute(new Execution(diagram, namePattern, andMatching));
return new EcoreToolsGMFDiagram(diagram);
}