org.geoserver.catalog.FeatureTypeInfo featureTypeInfo = new FeatureTypeInfoImpl(catalog);
featureTypeInfo.setName(name);
featureTypeInfo.setNativeName(name);
featureTypeInfo.setEnabled(true);
final DefaultGeographicCRS wgs84 = DefaultGeographicCRS.WGS84;
ReferencedEnvelope bbox = new ReferencedEnvelope(-180, 180, -90, 90, wgs84);
featureTypeInfo.setLatLonBoundingBox(bbox);
featureTypeInfo.setNamespace(namespaceInfo);
featureTypeInfo.setNativeBoundingBox(bbox);