Add optional externalisation procedures to coordinator component in Java and JAvaScript