class WritableScriptedDhisResource extends AbstractWritableScriptedDhisResource implements AccessibleScriptedDhisResource {

    @ScriptExecutionForbidden
    @Nonnull
    public DhisResource getDhisResource()
    {
        if ( scriptExecutionContext.hasScriptExecution() )
        {
            throw new FatalTransformerException( "Resource instance cannot be accessed within script execution." );
        }

        return getInternalResource();
    }

    public  WritableScriptedDhisResource( @Nonnull DhisResource resource, @Nonnull ScriptExecutionContext scriptExecutionContext );

}