@Override
                        public InputStream loadResource(String resourceName) {
                            File file = new File(JiveGlobals.getHomePath() + File.separator +
                                    "resources" + File.separator + "database", resourceName);
                            try {
                                return new FileInputStream(file);
                            }
                            catch (FileNotFoundException e) {
                                return null;
                            }
                        }
Checks the Openfire database schema to ensure that it's installed and up to date.
If the schema isn't present or up to date, an automatic update will be attempted.

@param con a connection to the database.
@return true if database schema checked out fine, or was automatically installed
     or updated successfully.
xmppserver/src/main/java/org/jivesoftware/database/SchemaManager.java