public static boolean containsInLineFeatures(StyledLayerDescriptor sld){
  if (sld != null) {
    for (    StyledLayer layer : sld.layers()) {
      if (layer instanceof UserLayer) {
        UserLayer userLayer=(UserLayer)layer;
        if (userLayer.getInlineFeatureDatastore() != null) {
          return true;
        }
      }
    }
  }
  return false;
}

public static boolean containsInLineFeatures ( StyledLayerDescriptor sld ) { if ( sld != null ) { for ( StyledLayer layer : sld . layers ( ) ) { if ( layer instanceof UserLayer ) { UserLayer userLayer = ( UserLayer ) layer ; if ( userLayer . getInlineFeatureDatastore ( ) != null ) { return true ; } } } } return false ; }
checks to see if sld contains inline features .
