@SuppressWarnings("resource")
	public void CrearBaseDeDatos() throws SQLException, FileNotFoundException,
			IOException {
		File dir = new File("/jpox.properties");
		System.out.println("dire path " + dir.getAbsolutePath());
		FileReader fr = new FileReader(dir.getAbsolutePath());
		BufferedReader bf = new BufferedReader(fr);
		String cadena = "";
		String user = "";
		String pass = "";
		String puerto = "";
		String nameDB = "";
		while ((cadena = bf.readLine()) != null) {
			if (cadena.split("javax.jdo.option.ConnectionUserName=").length > 1) {
				user = cadena.split("javax.jdo.option.ConnectionUserName=")[1];
			}
			if (cadena.split("javax.jdo.option.ConnectionPassword=").length > 1) {
				pass = cadena.split("javax.jdo.option.ConnectionPassword=")[1];
			}
			if (cadena.split("puertoPostgreSQL=").length > 1) {
				puerto = cadena.split("puertoPostgreSQL=")[1];
			}
			if (cadena.split("javax.jdo.option.ConnectionURL=").length > 1) {
				String[] aux = (cadena.split("javax.jdo.option.ConnectionURL=")[1])
						.split("/");
				nameDB = aux[aux.length - 1];
				System.out.println("dire path " + nameDB);
			}
		}
		if (!puerto.equals("")) {
			Connection conexion = DriverManager.getConnection(
					"postgresql://localhost:" + puerto + "/", user, pass);
			String query = "create database IF NOT EXISTS " + nameDB;
			Statement st = conexion.createStatement();
			st.executeUpdate(query);
		}

	}