src/sap.ui.core/src/sap/ui/core/routing/Targets.js
function (sName, oTargetOptions) {
				var oOldTarget = this.getTarget(sName),
					oTarget;

				if (oOldTarget) {
					Log.error("Target with name " + sName + " already exists", this);
				} else {
					oTarget = this._createTarget(sName, oTargetOptions);
					this._addParentTo(oTarget);
				}

				return this;
			}
function (sName, oTargetOptions) {
				var oOldTarget = this.getTarget(sName),
					oTarget;

				if (oOldTarget) {
					Log.error("Target with name " + sName + " already exists", this);
				} else {
					oTarget = this._createTarget(sName, oTargetOptions);
					this._addParentTo(oTarget);
				}

				return this;
			}
function ( sName , oTargetOptions ) { var oOldTarget = this . getTarget ( sName ) , oTarget ; if ( oOldTarget ) { Log . error ( "Target with name " + sName + " already exists" , this ) ; } else { oTarget = this . _createTarget ( sName , oTargetOptions ) ; this . _addParentTo ( oTarget ) ; } return this ; }
Creates a target by using the given name and options. If there's already a target with the same name exists, the existing target is kept from being overwritten and an error log will be written to the development console.

@param {string} sName the name of a target
@param {object} oTarget the options of a target. The option names are the same as the ones in "oOptions.targets.anyName" of {@link #constructor}.
@returns {sap.ui.core.routing.Targets} Targets itself for method chaining
@public
Creates a target by using the given name and options . If there s already a target with the same name exists the existing target is kept from being overwritten and an error log will be written to the development console .