public void add(String marble){
  if (marble.contains("&&")) {
    String[] temp=marble.split("&&");
    marble=temp[0];
    ObjectMapper mapper=new ObjectMapper();
    try {
      argMap=mapper.readValue(temp[1],new TypeReference<Map<String,Map<String,String>>>(){
      }
);
    }
 catch (    Exception e) {
      ConsoleUtils.error("couldn't convert argmap");
    }
  }
  if (marble.contains("|") || marble.contains("#")) {
    ps.onNext(createObservable(marble));
  }
 else {
    ps.onNext(createHotObservable(marble));
  }
}

public void add ( String marble ) { if ( marble . contains ( "&&" ) ) { String [ ] temp = marble . split ( "&&" ) ; marble = temp [ 0 ] ; ObjectMapper mapper = new ObjectMapper ( ) ; try { argMap = mapper . readValue ( temp [ 1 ] , new TypeReference < Map < String , Map < String , String > > > ( ) { } ) ; } catch ( Exception e ) { ConsoleUtils . error ( "couldn't convert argmap" ) ; } } if ( marble . contains ( "|" ) || marble . contains ( "#" ) ) { ps . onNext ( createObservable ( marble ) ) ; } else { ps . onNext ( createHotObservable ( marble ) ) ; } }
add part of a marble diagram to this . we want to remove the " - " characters since they are useless this should stage the data to be sent .
