Bug 149922 Image builder - URI and file source type are treated as same
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/StringUtil.java
* For example:
	 * <p>
	 * <ul>
	 * <li>"c:\home\abc.xml" => "abc.xml"
	 * <li>"c:\home\abc" => "abc"
	 * <li>"/home/user/abc.xml" => "abc.xml"
	 * <li>"/home/user/abc" => "abc"
	 * </ul>
	 * 
	 * @param filePathName
	 *            the file name with path and suffix
	 * @return the file name without path but with suffix
	 */
	public static String extractFileNameWithSuffix( String filePathName )
	{
		if ( filePathName == null )
			return null;
		int slashPos = filePathName.lastIndexOf( '\\' );
		if ( slashPos == -1 )
			slashPos = filePathName.lastIndexOf( '/' );
		return filePathName.substring( slashPos > 0 ? slashPos + 1 : 0 );
	}
	/**
	 * Extracts the libaray namespace from the given qualified reference value.
	 * <p>
	 * For example,
	 * <ul>
	 * <li>"LibA" is extracted from "LibA.style1"
	 * <li>null is returned from "style1"
	 * </ul>