@Override
  public boolean prepare() {
    style = view.getNamedStyle(styleClass, styleName);

    if (needsCreate = (style == null)) {
      style = (NamedStyle) NotationFactory.eINSTANCE.create(styleClass);
      style.setName(styleName);
    }

    command = createCommand();

    //		return true;
    return command.canExecute();
  }
 public static void setSemanticBranchEnd(View view, Property end) {
   org.eclipse.gmf.runtime.notation.EObjectValueStyle semanticStyle =
       (org.eclipse.gmf.runtime.notation.EObjectValueStyle)
           view.getNamedStyle(NotationPackage.eINSTANCE.getEObjectValueStyle(), SEMANTIC_BRANCH);
   semanticStyle.setEObjectValue(end);
 }
 public static Property getSemanticBranchEnd(View view) {
   org.eclipse.gmf.runtime.notation.EObjectValueStyle semanticStyle =
       (org.eclipse.gmf.runtime.notation.EObjectValueStyle)
           view.getNamedStyle(NotationPackage.eINSTANCE.getEObjectValueStyle(), SEMANTIC_BRANCH);
   return semanticStyle == null ? null : (Property) semanticStyle.getEObjectValue();
 }