public void putStyle(String styleId,StyleSelector styleSelector){
  try {
    int id=Integer.parseInt(styleId);
    mMaxStyleId=Math.max(mMaxStyleId,id);
  }
 catch (  NumberFormatException e) {
  }
  mStyles.put(styleId,styleSelector);
}

public void putStyle ( String styleId , StyleSelector styleSelector ) { try { int id = Integer . parseInt ( styleId ) ; mMaxStyleId = Math . max ( mMaxStyleId , id ) ; } catch ( NumberFormatException e ) { } mStyles . put ( styleId , styleSelector ) ; }
put the styleselector ( style or stylemap ) in the list of shared styles , associated to its styleid
