class TransformerUtils {

    @Nullable
    public static <T> T getOptionalScriptVariable( @Nonnull Map<String, Object> scriptVariables, @Nonnull ScriptVariable scriptVariable, @Nonnull Class<T> type ) throws FatalTransformerException
    {
        return type.cast( scriptVariables.get( scriptVariable.getVariableName() ) );
    }

    private  TransformerUtils();

}