()
| 218 | } |
| 219 | |
| 220 | public static Model getSingleton() { |
| 221 | if (model == null) { |
| 222 | // ZAP: Changed to use the method createSingleton(). |
| 223 | createSingleton(); |
| 224 | } |
| 225 | return model; |
| 226 | } |
| 227 | |
| 228 | // ZAP: Added method. |
| 229 | private static synchronized void createSingleton() { |