public void init(Context context, boolean override) {
		InputStream in = null;
		try {
			if(resourceLocator != null) {
				try {
					in = resourceLocator.locateInClassPath(context, DEFAULT_PROPERTIES_PATH);
					
					if(in != null) {
						Properties old = null;
						
						if(properties != null) {
							old = properties;
						}
						
						properties = createProperties();
						properties.load(in);
						
						trimValues(properties);
						
						if(old != null) {
							merge(old, null);
						}
					}
					else {
						if(logger != null) {
							logger.error("Could not locate config [" +
									DEFAULT_PROPERTIES_PATH +
									"] in classpath");
						}
					}
				}
				catch (IOException ignore) {
					// No config.. eek!
					ignore.printStackTrace();
				}
				finally {
					if(in != null) {
						in.close();
					}
				}
				
				if(override) {
					// Look for override
					try {
						in = resourceLocator.locate(context, propertiesFileName);
						
						if(in != null) {
							Properties overrideProps = createProperties();
							overrideProps.load(in);
							trimValues(overrideProps);
							merge(overrideProps, null);
						}
					}
					catch (IOException ignore) {
						// ignore
					}
					finally {
						if(in != null) {
							in.close();
						}
					}
				}
			}
			
			if(properties == null) {
				if(logger != null) {
					logger.error(SocializeLogger.NO_CONFIG);
				}
				properties = createProperties();
			}
		}
		catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
public void init ( Context context , boolean override ) { InputStream in = null ; try { if ( resourceLocator != null ) { try { in = resourceLocator . locateInClassPath ( context , DEFAULT_PROPERTIES_PATH ) ; if ( in != null ) { Properties old = null ; if ( properties != null ) { old = properties ; } properties = createProperties ( ) ; properties . load ( in ) ; trimValues ( properties ) ; if ( old != null ) { merge ( old , null ) ; } } else { if ( logger != null ) { logger . error ( "Could not locate config [" + DEFAULT_PROPERTIES_PATH + "] in classpath" ) ; } } } catch ( IOException ignore ) { ignore . printStackTrace ( ) ; } finally { if ( in != null ) { in . close ( ) ; } } if ( override ) { try { in = resourceLocator . locate ( context , propertiesFileName ) ; if ( in != null ) { Properties overrideProps = createProperties ( ) ; overrideProps . load ( in ) ; trimValues ( overrideProps ) ; merge ( overrideProps , null ) ; } } catch ( IOException ignore ) { } finally { if ( in != null ) { in . close ( ) ; } } } } if ( properties == null ) { if ( logger != null ) { logger . error ( SocializeLogger . NO_CONFIG ) ; } properties = createProperties ( ) ; } } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
@param context
@param override