*
*
*/
@SuppressWarnings("unchecked")
public static List<Field> getFieldsByStructureVariableName(String velocityVarName){
DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
List<Field> fields = null;
try{
fields = (List<Field>) cache.get(getPrimaryGroup() + velocityVarName, getPrimaryGroup());
}catch (DotCacheException e) {
Logger.debug(FieldsCache.class,"Cache Entry not found", e);
}
if (fields == null) {
synchronized (velocityVarName.intern()){
try{
fields = (List<Field>) cache.get(getPrimaryGroup() + velocityVarName, getPrimaryGroup());
}catch (DotCacheException e) {
Logger.debug(FieldsCache.class,"Cache Entry not found", e);
}
if(fields ==null){
Structure st = StructureCache.getStructureByVelocityVarName(velocityVarName);