private synchronized State getState(JComponent component, Part part) {
   State rv = null;
   Object tmpObject = component.getClientProperty(PartUIClientPropertyKey.getKey(part));
   if (tmpObject instanceof State) {
     rv = (State) tmpObject;
   }
   return rv;
 }
 private synchronized void putState(JComponent component, Part part, State state) {
   component.putClientProperty(PartUIClientPropertyKey.getKey(part), state);
 }