protected void initializeVariable(HistoricVariableInstanceEntity e) {
    if (Context.getCommandContext() != null && e != null && e.getVariableType() != null) {
      e.getValue();

      // make sure JPA entities are cached for later retrieval
      if (JPAEntityVariableType.TYPE_NAME.equals(e.getVariableType().getTypeName()) || JPAEntityListVariableType.TYPE_NAME.equals(e.getVariableType().getTypeName())) {
        ((CacheableVariable) e.getVariableType()).setForceCacheable(true);
      }
    }
  }
protected void initializeVariable ( HistoricVariableInstanceEntity e ) { if ( Context . getCommandContext ( ) != null && e != null && e . getVariableType ( ) != null ) { e . getValue ( ) ; if ( JPAEntityVariableType . TYPE_NAME . equals ( e . getVariableType ( ) . getTypeName ( ) ) || JPAEntityListVariableType . TYPE_NAME . equals ( e . getVariableType ( ) . getTypeName ( ) ) ) { ( ( CacheableVariable ) e . getVariableType ( ) ) . setForceCacheable ( true ) ; } } }
If the passed {@link HistoricVariableInstanceEntity} is a binary variable and the command-context is active, the variable value is fetched to ensure the byte-array is populated.