* Returns the protocol used or to be used, if known.
*
* @return The protocol used or to be used.
*/
public Protocol getProtocol() {
Protocol result = this.protocol;
if ((result == null) && (getResourceRef() != null)) {
// Attempt to guess the protocol to use
// from the target reference scheme
result = getResourceRef().getSchemeProtocol();