public static final String removeUninterestingParts(String text, String startBorder, String endBorder, boolean includeBorders) {
		String ret="";
		try {
			if(text!=null&&startBorder!=null&&endBorder!=null&&(text.indexOf(startBorder)!=-1)&&(text.indexOf(endBorder)!=-1) ) {
				
				if(includeBorders) {
					text = text.substring(text.indexOf(startBorder));
					if(text!=null) {
						ret = text.substring(0,text.indexOf(endBorder)+endBorder.length());
					} else {
						ret = null;
					}
				} else {
					text = text.substring(text.indexOf(startBorder)+startBorder.length());
					if(text!=null) {
						ret = text.substring(0,text.indexOf(endBorder));
					} else {
						ret = null;
					}
				}
			
			} else {
				ret = null;
			}
		} catch (Exception e) {
			System.out.println("Exception "+e.getMessage());
			System.out.println("Begin:"+startBorder);
			System.out.println("End:"+endBorder);
			System.out.println("Text:"+text);
			e.printStackTrace();
			ret = null;
		}
		return ret;
	}