code: public static UserStyleInfo createStyle(RuleInfo rule) {
  		UserStyleInfo userStyleInfo = new UserStyleInfo();
  		FeatureTypeStyleInfo fts = new FeatureTypeStyleInfo();
  		fts.getRuleList().add(rule);
  		userStyleInfo.getFeatureTypeStyleList().add(fts);
  		return userStyleInfo;
  	}
docs: Create a style with a single rule.
  
  @param rule rule
  @return the style