String nameSpace;
String typeName;
Map<Name, FeatureSource<SimpleFeatureType, SimpleFeature>> stores = new HashMap<Name, FeatureSource<SimpleFeatureType, SimpleFeature>>();
Set<Name> typeRefs = new HashSet<Name>();
for (int i = 0; i < layers.length; i++) {
Name name = layers[i].getSchema().getName();
nameSpace = name.getNamespaceURI();
typeName = name.getLocalPart();
source = layers[i].getResource(FeatureSource.class, monitor);
//map = dataStoreID:typeName
String typeRef = nameSpace.toString()+":"+typeName; //$NON-NLS-1$
stores.put(name, source);
typeRefs.add(name);