public class StructureCache {
public static final String MASTER_STRUCTURE = "dotMaster_Structure";
public static void addStructure(Structure st){
DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
// we use the identifier uri for our mappings.
String inode = st.getInode();
String structureName = st.getName();
String velocityVarName = st.getVelocityVarName();
cache.put(getPrimaryGroup() + inode, st, getPrimaryGroup());
cache.put(getPrimaryGroup() + structureName, st, getPrimaryGroup());
cache.put(getPrimaryGroup() + velocityVarName, st, getPrimaryGroup());
if (UtilMethods.isSet(velocityVarName))
cache.put(getPrimaryGroup() + velocityVarName.toLowerCase(), st, getPrimaryGroup());
}