[bugfix] URI validation using RegEx was flaky, switched to Java Library
[feature] Made application function puplic so it can be called from the UI