public static DAVProperties getResourceProperties(DAVConnection connection, String path, String label,
													  DAVElement[] properties) throws SVNException {
		Map resultMap = new SVNHashMap();
		HTTPStatus status = getProperties(connection, path, DEPTH_ZERO, label, properties, resultMap);
		if (status.getError() != null) {
			SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
		}
		if (!resultMap.isEmpty()) {
			return (DAVProperties) resultMap.values().iterator().next();
		}
		label = label == null ? "NULL" : label;
		SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Failed to find label ''{0}'' for URL ''{1}''", new Object[] {label, path});
		SVNErrorManager.error(err, SVNLogType.NETWORK);
		return null;
	}
Handle different branch concept in svn and github.

@since 3.5.0
ngrinder-controller/src/main/java/org/tmatesoft/svn/core/internal/io/dav/DAVUtil.java