code: public boolean acceptTemplate(String tpl)
  	{
  
  		if (isInWhiteList(tpl) && !isInBlackList(tpl)) {
  			if (containsAllowedPrefix(tpl) && !containsRestrictedPrefix(tpl)) {
  				return true;
  			}
  			else {
  				return false;
  			}
  		}
  		else {
  			return false;
  		}
  
  	}
docs: Checks whether to include the template with the given name in the
  database or not.
  
  @param tpl
  the template name
  @return true, if the template should be included in the db