private int parseStyleInDefaultWorkspace(GeoServerRESTReader reader,int count,List<StyleWrapper> styleList){
  RESTStyleList geoServerStyleList=reader.getStyles();
  for (  String style : geoServerStyleList.getNames()) {
    StyleWrapper newStyleWrapper=new StyleWrapper(DEFAULT_WORKSPACE_NAME,style);
    styleList.add(newStyleWrapper);
    if (parentObj != null) {
      parentObj.readStylesProgress(connection,count,count);
    }
    count++;
  }
  return count;
}

private int parseStyleInDefaultWorkspace ( GeoServerRESTReader reader , int count , List < StyleWrapper > styleList ) { RESTStyleList geoServerStyleList = reader . getStyles ( ) ; for ( String style : geoServerStyleList . getNames ( ) ) { StyleWrapper newStyleWrapper = new StyleWrapper ( DEFAULT_WORKSPACE_NAME , style ) ; styleList . add ( newStyleWrapper ) ; if ( parentObj != null ) { parentObj . readStylesProgress ( connection , count , count ) ; } count ++ ; } return count ; }
parses the style in default workspace .
