@Override
	public EditPart createEditPart(EditPart context, Object model) {
		
		EditPart part = null;
		
		if (model instanceof XMLDocument) {
			
			part = new EditorPart();
			
		} else if (model instanceof XMLElement) {
			
			String adress = ((XMLElement) model).getAddress();
			
			if (adress.equals("/jbossesb")) {
				part = new JBossESBPart();
			} else if (adress.startsWith("/jbossesb/providers")) {
				part = new ProviderPart();
			} else if (adress.startsWith("/jbossesb/services")) {
				part = new ServicePart();
			}
		}

		if (part != null) {
			part.setModel(model);
		}

		return part;
	}