- public void setProperty(String name, String value) {
- properties.put(name, value);
- /* TODO - set property. */
+ void setProperty(String name, String value) {
+ synchronized (properties) {
+ properties.put(name, value);
+ }
+ }
+
+ /**
+ * Returns the value of the property with the given name.
+ *
+ * @param name
+ * The name of the property
+ * @return The value of the property
+ */
+ public String getProperty(String name) {
+ synchronized (properties) {
+ return properties.get(name);
+ }