code: public static Token makeReferenceToken(String bean, String template, String parameter,
                                             String attribute, String property) {
          Token token;
          if (bean != null) {
              token = new Token(TokenType.BEAN, bean);
          } else if (template != null) {
              token = new Token(TokenType.TEMPLATE, template);
          } else if (parameter != null) {
              token = new Token(TokenType.PARAMETER, parameter);
          } else if (attribute != null) {
              token = new Token(TokenType.ATTRIBUTE, attribute);
          } else if (property != null) {
              token = new Token(TokenType.PROPERTY, property);
          } else {
              token = null;
          }
          return token;
      }
docs: Returns a made reference token.
  
  @param bean the bean id
  @param template the template id
  @param parameter the parameter name
  @param attribute the attribute name
  @param property the property name
  @return the token